<?php

use yii\helpers\Html;

/* @var $this  yii\web\View */
/* @var $model \yii2mod\rbac\models\BizRuleModel */

$this->title = $prod_spec_name . Yii::t('region',   '创建');
//$this->params['breadcrumbs'][] = ['label' => Yii::t('yii2mod.rbac', 'Rules'), 'url' => ['index']];
//$this->params['breadcrumbs'][] = $this->title;
//$this->render('/layouts/_sidebar');
?>


<section class="content document-nav-create-prod-form" id="document-nav-create-prod-form">
    <div class="box box-primary">
        <div class="box-body box-profile">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">×</span></button>
                <h4 class="modal-title"><?php echo Html::encode('创建' . $prodSpecName . '信息'); ?></h4>
            </div>
            <div class="row">
                <?php
                if($yw2==2){//是业务2部的按钮
                    echo $this->renderAjax('_form3', [
                        'domainTypes' => $domainTypes,
                        'parent_prod_spec_id' => $parent_prod_spec_id ,
                        'parent_prod_id' => $parent_prod_id,
                        'p1' =>$p1,
                        'model' => $model,
                        'model2' => $model2,
                        'uploadModel' => $uploadModel,
                        'prod_spec_id' => $prod_spec_id,
                        'prodSpecName' =>$prodSpecName,
                        'attrSpecs' => $attrSpecs,
                        'attrSpecsd' => $attrSpecsd,
                        'regionList' =>$regionList
                    ]);
                }else{
                    echo $this->renderAjax('_form', [
                        'domainTypes' => $domainTypes,
                        'parent_prod_spec_id' => $parent_prod_spec_id ,
                        'parent_prod_id' => $parent_prod_id,
                        'p1' =>$p1,
                        'model' => $model,
                        'uploadModel' => $uploadModel,
                        'prod_spec_id' => $prod_spec_id,
                        'prodSpecName' =>$prodSpecName,
                        'attrSpecs' => $attrSpecs,
                        'regionList' =>$regionList
                    ]);
                }

                ?>
            </div>
        </div>
    </div>

</section>


